import {defineStore} from "pinia";
import {ref} from "vue";
export const useTypeIdStore=defineStore('typeId',()=>{
        const typeId=ref(0)

        function setTypeId(newId){
            typeId.value=newId
        }
        function removeBusinessInfoId(){
            typeId.value=0
        }
        return{
            typeId,setTypeId,removeBusinessInfoId
        }
    },
    {
        persist:true
    }
);